#pragma once

namespace	MomogenkyouContent	{


class KeywordTextures
{
protected:
	std::map<std::string, MomogenkyouSystem::TextureData *>	m_KeywordAtlas;
	std::map<std::string, MomogenkyouSystem::TextureFrame>	m_KeywordFrames;
public:
	bool	Initialize(const std::string & XMLDefinition, MomogenkyouSystem::ContentManager * pContentManager);
	bool	Shutdown();

	MomogenkyouSystem::TextureData	*	FindKeywordAtlus(const std::string & Name);
	MomogenkyouSystem::TextureFrame		FindKeywordFrame(const std::string & Name);
};



class CommonContents
{
	static	MomogenkyouSystem::ContentManager		g_ContentManager;
	static	MomogenkyouContent::KeywordTextures		g_KeywordTextures;
public:

	static	bool	Initialize();

	static	bool	Shutdown();

	//	Search for the reference to a loaded Keyword Texture
	static	MomogenkyouSystem::TextureFrame		FindKeywordTexture(const std::string & Name);
};


}